package com.lin.cloud.disk.entity.request.file;

import com.lin.cloud.disk.common.entity.request.AccountRequestDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 创建大文件上床请求类 获取到UploadId
 * @author ljc
 * @date 2021/2/3 16:52
 */
@Data
public class GetMultipartUploadUrlRequest extends AccountRequestDTO {

//    @NotNull(message = "目录ID不能为空")
    @ApiModelProperty(value = "目录ID", name = "directoryId")
    private Long directoryId;

    @NotBlank(message = "文件路径不能为空")
    @ApiModelProperty(value = "文件路径", name = "objectName")
    private String objectName;

    @NotBlank(message = "文件MD5值不能为空")
    @ApiModelProperty(value = "文件MD5值", name = "md5")
    private String md5;

    @NotNull(message = "文件大小不能为空")
    @ApiModelProperty(value = "文件大小", name = "fileSize")
    private Long fileSize;

}
